package com.ruoyi.employee.controller;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.employee.service.TbRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/role")
public class RoleController {
    @Autowired
    private TbRoleService tbRoleService;

    @GetMapping("findallrole")
    public AjaxResult findAllRole(){
        return AjaxResult.success(tbRoleService.list());
    }
}
